// 编辑规则
export const rules = {
  phone: [
    {
      required: true,
      message: "请输入手机号",
      trigger: "blur",
    },
    {
      pattern: /^[0-9]{11}$/,
      message: "手机号应为11位数字",
      trigger: "blur",
    },
  ],
  code: [
    {
      required: true,
      message: "请输入验证码",
      trigger: "blur",
    },
    {
      pattern: /^[0-9]{6}$/,
      message: "验证码应为6位数字",
      trigger: "blur",
    },
  ],
};
